package org.sang.mapper;

import org.apache.ibatis.annotations.Param;
import org.sang.bean.DailyReport;
import org.sang.bean.LeaveWork;

import java.util.Date;
import java.util.List;

public interface LeaveWorkMapper {

    int insert(LeaveWork record);

    LeaveWork selectByPrimaryKey(@Param("id") String id);

    int updateByPrimaryKeySelective(LeaveWork record);

    List<LeaveWork> getLeaveWorkByPage(@Param("start") Integer start, @Param("size") Integer size, @Param("keywords") String keywords, @Param("userId") Long userId, @Param("startBeginDate") Date startBeginDate, @Param("endBeginDate") Date endBeginDate);

    Long getCountByKeywords(@Param("keywords") String keywords, @Param("userId") Long userId, @Param("startBeginDate") Date startBeginDate, @Param("endBeginDate") Date endBeginDate);

    int delLeaveWorkById(@Param("ids") String[] ids);

}